package main

import (
	"fmt"
	"math/rand"
	"time"
)

func timer()  {
	fmt.Println("程序运行时间")

}

//noinspection ALL
func generatorRangeArray(n int, rangeL int, ranger int) []int {
	var arr []int
	for i:=0; i<n ;i++  {
		rand.Seed(time.Now().UnixNano())
		arr[i] = rand.Intn(ranger-rangeL+1) + rangeL
	}
	return arr
}


func main() {
	arr := generatorRangeArray(10,10,20)
	fmt.Println(arr)
}